package com.smooth.site.sx.pc.base.enums;

public enum OnlineStatus {
	init(0, "下架"),
	published(1, "已上架"),
	;

	public Integer value;
	public String name;

	OnlineStatus(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static OnlineStatus getStatus(Integer value) {
		if (value != null) {
			OnlineStatus[] otypes = OnlineStatus.values();
			for (OnlineStatus memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
